package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.Date;

/**
 * 认证详情（二手车）实体
 * 表名 car_attestation
 *
 * @author administrator
 * @email 123456678@qq.com
 * @date 2023-07-26 20:22:40
 */
//public class CarAttestation implements Serializable {
public class CarAttestation implements Parcelable {

    /**
     * 认证详情主键ID
     */
    private String carAttestationId;

    /**
     * 店铺ID
     */
    private Integer shopInfoId;

    /**
     * 用户ID
     */
    private transient Integer customerId;

    /**
     * 姓名
     */
    private String customerName;
    /**
     * 手机号
     */
    private String customerPhone;
    /**
     * 认证体系Id集合
     */
    private String attestationIds;
    /**
     * 认证体系名称集合
     */
    private String attestationNames;
    /**
     * 汽车品牌ID
     */
    private Integer carBrandId;
    /**
     * 车系ID
     */
    private Integer carSeriesId;
    /**
     * 车辆型号
     */
    private String carModel;
    /**
     * 认证状态：0:待联系;1:待认证;2:已认证;3已取消
     */
    private int status;
    //认证状态的 汉字格式
    private String statusName;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否删除：0：否；1：是
     */
    private transient Integer isDelete;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 更新者ID
     */
    private transient Integer updateCustomerId;
    /**
     * 修改时间
     */
    private transient Date updateTime;


    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    /**
     * 取消原因
     */
    private String reason;

    /**
     * 设置：认证详情主键ID
     */
    public void setCarAttestationId(String carAttestationId) {
        this.carAttestationId = carAttestationId;
    }

    /**
     * 获取：认证详情主键ID
     */
    public String getCarAttestationId() {
        return carAttestationId;
    }

    /**
     * 设置：店铺ID
     */
    public void setShopInfoId(Integer shopInfoId) {
        this.shopInfoId = shopInfoId;
    }

    /**
     * 获取：店铺ID
     */
    public Integer getShopInfoId() {
        return shopInfoId;
    }

    /**
     * 设置：用户ID
     */
    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    /**
     * 获取：用户ID
     */
    public Integer getCustomerId() {
        return customerId;
    }

    /**
     * 设置：姓名
     */
    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    /**
     * 获取：姓名
     */
    public String getCustomerName() {
        return customerName;
    }

    /**
     * 设置：手机号
     */
    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    /**
     * 获取：手机号
     */
    public String getCustomerPhone() {
        return customerPhone;
    }

    /**
     * 设置：认证体系Id集合
     */
    public void setAttestationIds(String attestationIds) {
        this.attestationIds = attestationIds;
    }

    /**
     * 获取：认证体系Id集合
     */
    public String getAttestationIds() {
        return attestationIds;
    }

    /**
     * 设置：认证体系名称集合
     */
    public void setAttestationNames(String attestationNames) {
        this.attestationNames = attestationNames;
    }

    /**
     * 获取：认证体系名称集合
     */
    public String getAttestationNames() {
        return attestationNames;
    }

    /**
     * 设置：汽车品牌ID
     */
    public void setCarBrandId(Integer carBrandId) {
        this.carBrandId = carBrandId;
    }

    /**
     * 获取：汽车品牌ID
     */
    public Integer getCarBrandId() {
        return carBrandId;
    }

    /**
     * 设置：车系ID
     */
    public void setCarSeriesId(Integer carSeriesId) {
        this.carSeriesId = carSeriesId;
    }

    /**
     * 获取：车系ID
     */
    public Integer getCarSeriesId() {
        return carSeriesId;
    }

    /**
     * 设置：车辆型号
     */
    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }

    /**
     * 获取：车辆型号
     */
    public String getCarModel() {
        return carModel;
    }

    /**
     * 设置：认证状态：0:待联系;1:待认证;2:已认证;3已取消
     */
    public void setStatus(int status) {
        this.status = status;
    }

    /**
     * 获取：认证状态：0:待联系;1:待认证;2:已认证;3已取消
     */
    public int getStatus() {
        return status;
    }

    /**
     * 设置：备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取：备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置：是否删除：0：否；1：是
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取：是否删除：0：否；1：是
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 设置：创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取：创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 设置：更新者ID
     */
    public void setUpdateCustomerId(Integer updateCustomerId) {
        this.updateCustomerId = updateCustomerId;
    }

    /**
     * 获取：更新者ID
     */
    public Integer getUpdateCustomerId() {
        return updateCustomerId;
    }

    /**
     * 设置：修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取：修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }


//    {
//        "code": "20000",
//            "data": {
//        "dataCount": 4,
//                "dataList": [
//        {
//            "attestationIds": "45,43",
//                "attestationNames": "上汽认证,中达认证",
//                "attestationResultVoList": [],
//            "carAttestationId": 53,
//                "carBrandId": 5,
//                "carBrandName": "大众",
//                "carModel": "朗逸",
//                "carSeriesId": 4,
//                "carSeriesName": "大众XL1",
//                "createTime": "2023-08-01 15:47:54",
//                "customerId": 38173,
//                "customerName": "孙先生",
//                "customerPhone": "13124751221",
//                "isDelete": 0,
//                "reason": "",
//                "remark": "",
//                "shopInfoId": 1495,
//                "shopName": "众诚上汽大众",
//                "status": 2,
//                "statusName": "已认证",
//                "updateCustomerId": 62962,
//                "updateTime": "2023-08-01 19:06:36"
//        },
//        {
//            "attestationIds": "45,43",
//                "attestationNames": "上汽认证,中达认证",
//                "attestationResultVoList": [],
//            "carAttestationId": 52,
//                "carBrandId": 1,
//                "carBrandName": "",
//                "carModel": "车型",
//                "carSeriesId": 1,
//                "carSeriesName": "宋plus",
//                "createTime": "2023-07-28 11:10:01",
//                "customerId": 38173,
//                "customerName": "孙先生",
//                "customerPhone": "13124751221",
//                "isDelete": 0,
//                "reason": "",
//                "remark": "",
//                "shopInfoId": 1495,
//                "shopName": "众诚上汽大众",
//                "status": 0,
//                "statusName": "待联系",
//                "updateCustomerId": 0
//        },
//        {
//            "attestationIds": "45,43",
//                "attestationNames": "上汽认证,中达认证",
//                "attestationResultVoList": [],
//            "carAttestationId": 51,
//                "carBrandId": 2021,
//                "carBrandName": "",
//                "carModel": "车型",
//                "carSeriesId": 804,
//                "carSeriesName": "",
//                "createTime": "2023-07-28 09:44:34",
//                "customerId": 38173,
//                "customerName": "孙先生",
//                "customerPhone": "13124751221",
//                "isDelete": 0,
//                "reason": "",
//                "remark": "",
//                "shopInfoId": 1495,
//                "shopName": "众诚上汽大众",
//                "status": 0,
//                "statusName": "待联系",
//                "updateCustomerId": 0
//        },
//        {
//            "attestationIds": "45,43",
//                "attestationNames": "上汽认证,中达认证",
//                "attestationResultVoList": [],
//            "carAttestationId": 50,
//                "carBrandId": 2021,
//                "carBrandName": "",
//                "carModel": "车形",
//                "carSeriesId": 2021,
//                "carSeriesName": "",
//                "createTime": "2023-07-28 09:43:17",
//                "customerId": 38173,
//                "customerName": "孙先生",
//                "customerPhone": "13124751221",
//                "isDelete": 0,
//                "reason": "",
//                "remark": "",
//                "shopInfoId": 1495,
//                "shopName": "众诚上汽大众",
//                "status": 0,
//                "statusName": "待联系",
//                "updateCustomerId": 0
//        }
//        ],
//        "nextPagination": 2,
//                "pagination": 1,
//                "paginationCount": 0
//    },
//        "message": "success"
//    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.carAttestationId);
        dest.writeValue(this.shopInfoId);
        dest.writeString(this.customerName);
        dest.writeString(this.customerPhone);
        dest.writeString(this.attestationIds);
        dest.writeString(this.attestationNames);
        dest.writeValue(this.carBrandId);
        dest.writeValue(this.carSeriesId);
        dest.writeString(this.carModel);
        dest.writeInt(this.status);
        dest.writeString(this.statusName);
        dest.writeString(this.remark);
        dest.writeString(this.createTime);
        dest.writeString(this.reason);
    }

    public void readFromParcel(Parcel source) {
        this.carAttestationId = source.readString();
        this.shopInfoId = (Integer) source.readValue(Integer.class.getClassLoader());
        this.customerName = source.readString();
        this.customerPhone = source.readString();
        this.attestationIds = source.readString();
        this.attestationNames = source.readString();
        this.carBrandId = (Integer) source.readValue(Integer.class.getClassLoader());
        this.carSeriesId = (Integer) source.readValue(Integer.class.getClassLoader());
        this.carModel = source.readString();
        this.status = source.readInt();
        this.statusName = source.readString();
        this.remark = source.readString();
        this.createTime = source.readString();
        this.reason = source.readString();
    }

    public CarAttestation() {
    }

    protected CarAttestation(Parcel in) {
        this.carAttestationId = in.readString();
        this.shopInfoId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.customerName = in.readString();
        this.customerPhone = in.readString();
        this.attestationIds = in.readString();
        this.attestationNames = in.readString();
        this.carBrandId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.carSeriesId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.carModel = in.readString();
        this.status = in.readInt();
        this.statusName = in.readString();
        this.remark = in.readString();
        this.createTime = in.readString();
        this.reason = in.readString();
    }

    public static final Parcelable.Creator<CarAttestation> CREATOR = new Parcelable.Creator<CarAttestation>() {
        @Override
        public CarAttestation createFromParcel(Parcel source) {
            return new CarAttestation(source);
        }

        @Override
        public CarAttestation[] newArray(int size) {
            return new CarAttestation[size];
        }
    };
}
